/*
 * Use call by values in function call for swapping two values
 * is it possible or not? why?
 * Not possible because function returns only single value and its orginal arguments are copied to formal argumants of the called
 * function so original arguments of calling function remains unchanged
 */

#include <stdio.h>

static void swapv(int, int);

int main()
{
	int a = 10;
	int b = 20;

	swapv(a,b);

	printf("a = %d\n", a);
	printf("b = %d\n", b);

	return 0;
}

static void
swapv(int x, int y)
{
	int t;

	t = x;
	x = y;
	y = t;

	printf("x = %d\n", x);
	printf("y = %d\n", y);
}
